/*
* @Author: wanghongfucoder
* @Date:   2017-02-05 09:50:52
* @Last Modified by:   wanghongfucoder
* @Last Modified time: 2017-02-05 10:12:47
*/

public class BuilderPatternDemo {
	public static void main(String[] args) {
		MealBuilder mealBuilder=new MealBuilder();
		Meal vegMeal=mealBuilder.prepareVegMeal();
		System.out.println("Veg Meal");
		vegMeal.showItems();
		System.out.println("Total Cost: "+vegMeal.getCost());

		Meal nonVegMeal=mealBuilder.prepareNonVegMeal();
		System.out.println("NonVeg  Meal");
		nonVegMeal.showItems();
		System.out.println("Total Cost: "+nonVegMeal.getCost());
	}
}